package com.gibs.peixunapi.model;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.*;

/**
 * @author liangjiawei
 */
@EqualsAndHashCode(callSuper = true)
@Entity
@Data
//@Table(name = "Documentation")
public class Documentation extends BaseModel {	//文档课程
	private String name;     //名称
	private String summary;     //简介
	private Double minReadTime;     //最少阅读时间
	private Boolean isAllowTurnPage;     //翻页限制
	@ManyToOne(cascade = CascadeType.REFRESH)
	private Course course;     //课程id
	@OneToOne(cascade = CascadeType.REFRESH)
	private FileInfo fileInfo;     //文件id
	private Integer audit;     //审核
	private Integer creatorId;     //创建人
	private Boolean isDel;     //是否删除
	private Integer sort;     //排序


}

